﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="calc.aspx.vb" Inherits="WebApp1.calc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    Input 1st Number<asp:TextBox ID="TB_FirstNumber" runat="server" 
        style="margin-left: 0px"></asp:TextBox>
    &nbsp;<asp:RangeValidator ID="RangeValidator1" runat="server" 
    ControlToValidate="TB_FirstNumber" CssClass="errorMessage" 
    ErrorMessage="Must type in a number bw 0 &amp; 1000" MaximumValue="1000" 
    MinimumValue="0" Type="Integer"></asp:RangeValidator>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
    ControlToValidate="TB_FirstNumber" CssClass="errorMessage" 
    ErrorMessage="Must enter 1set number"></asp:RequiredFieldValidator>
    <br />
    <p>
    Input 2nd Number<asp:TextBox ID="TB_SecNumber" runat="server"></asp:TextBox>
        &nbsp;<asp:RangeValidator ID="RangeValidator2" runat="server" 
            ControlToValidate="TB_SecNumber" CssClass="errorMessage" 
            ErrorMessage="Must enter number between 0 &amp; 1000" MaximumValue="1000" 
            MinimumValue="0" Type="Integer"></asp:RangeValidator>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
            ControlToValidate="TB_SecNumber" CssClass="errorMessage" 
            ErrorMessage="Must enter 2nd number"></asp:RequiredFieldValidator>
</p>
    <p>
        <asp:Button ID="BTN_plus" runat="server" Text="+" style="width: 22px" />     
        &nbsp;<asp:Button ID="BTN_minus" runat="server" Text="-" />
        &nbsp;<asp:Button ID="BTN_mul" runat="server" Text="*" />
        &nbsp;<asp:Button ID="BTN_div" runat="server" Text="/" />
        &nbsp;<asp:Button ID="BTN_pow" runat="server" Text="pow" />
    </p>
    <p>
        <asp:Label ID="LBL_Result" runat="server"></asp:Label>
    </p>
</asp:Content>
